#ifndef _MASSE_STRUCT__
#define _MASSE_STRUCT__

#include <vector_types.h>

struct spring_phys;
struct spring;
struct masse;

typedef masse * pmasse;
typedef spring * pspring;
typedef spring_phys * pspring_phys;

struct spring_phys
{
	int type;
	float l0;
	float k;
	float k_amort;
};

struct spring
{
	int orientation[2];
	int mass[2];
	pspring_phys ressort;
};

struct masse
{
	int idx;
	float3 position;
	float3 force[12];
	float3 amort[12];
	float3 cumul_force;
	bool isFix;
};

#endif
